home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: bmatejek@aol.com (BMatejek)
- Newsgroups: comp.lang.c++
- Subject: CListBox-Problem Multisel <->Singlesel
- Date: 7 Feb 1996 09:59:51 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4faep7$eih@newsbf02.news.aol.com>
- Reply-To: bmatejek@aol.com (BMatejek)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Hi folks!
-
- I have a big problem -for me. I try to change the ListBox attribute after
- having created the Dialog with this ListBox and before opening this
- special dialog.
-
- Therefor I tried the following terminologie:
-
- CListDialog Dlg(this); //with member CListBox m_List
- SetWindowLong(Dlg.m_List.m_hWnd, GWL_STYLE,
- GetWindowLong(Dlg.m_List.m_hWnd, GWL_STYLE) | LBS_MULTIPLESELE);
- Dlg.DoModal();
-
- BUT IT DOESN T WORK!
-
- In the resource editor I marked the single selection attribute, because I
- need this dialog for other functions.
-
- It would be very kind if you could help me.
-
- Thanks and cu Bernd, Germany
-